<?php

use think\facade\Route;

Route::post('study', 'app\controller\Study\StudyController@add');

Route::get('study', 'app\controller\Study\StudyController@index');

Route::put('study', 'app\controller\Study\StudyController@update');

Route::delete('study', 'app\controller\Study\StudyController@remove');

Route::get('imooc', 'app\controller\Study\ImoocController@get');

//添加单个学生接口
Route::post('student', 'app\controller\Study\StudentController@addStudent');

//获取单个学生接口
Route::get('student', 'app\controller\Study\StudentController@getStudent');

//修改单个学生信息接口
Route::put('student', 'app\controller\Study\StudentController@updateStudent');

//删除单个学生接口
Route::delete('student', 'app\controller\Study\StudentController@deleteStudent');

//批量添加学生接口
Route::delete('students', 'app\controller\Study\StudentController@addStudents');

//获取学生列表接口
Route::get('students', 'app\controller\Study\StudentController@getStudents');

//插入数据事务操作
Route::post('transaction','app\controller\Study\TeacherController@transaction');

//第一步：设置注册用户路由
//Route::get('register','login/register');

